import com.spring.bean.lifecycle.Lifecycle;
import org.springframework.context.ApplicationContext;


import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LifecycleTest {
    public static void main(String[] args) {
        ApplicationContext context;
        context = new ClassPathXmlApplicationContext("lifecycle.xml");


        Lifecycle lifecycle = (Lifecycle) context.getBean("lifecycle");
        lifecycle.print();


    }
}
